package com.itheima1.mapper;

import com.itheima1.pojo.Member;
import com.itheima1.pojo.MemberDTO;
import com.itheima1.pojo.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.util.Date;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 博~
 * @since 2024-12-23
 */
@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    int checkOrderDate(Date localDate);


    Integer getID(String telephone);

    int checkIsOrdered(Integer memberId, Date orderDate, Integer setmealId);


    Boolean checkOrderDateisOk(Date orderDate);

    void submitOrder(Order order);

    Integer insertMember(MemberDTO memberDTO);

    void updateOrderSetting(Date orderDate);

    Order findById(Integer id);

    Member getOne(Integer memberId);
}
